<template>
	<view>
		<view style="width:100vw;text-align: center; font-weight: bold; padding: 15px 0;">插件调试</view>
		<view style="padding: 15px 30px;">返回信息：{{ reply }}</view>
		<view style="padding: 15px 30px;">原始数据：{{ msg }}</view>
	</view>
</template>
 
<script>
	const plugin = uni.requireNativePlugin('test')
	export default {
		data() {
			return {
				reply: "",
				msg: "",
			}
		},
		onLoad() {
			let that = this
			plugin.sayHi("lauwen", function (res) {
				that.msg = JSON.stringify(res)
				that.reply = res.re;
			})
		},
		methods: {
 
		}
	}
</script>
 
<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
 
	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}
 
	.text-area {
		display: flex;
		justify-content: center;
	}
 
	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>